package com.android.danaobank.model;

import com.lg.meng.model.BaseServerResponse;

public class HttpResponse<T> extends BaseServerResponse<T> {
    private boolean success;
    private int errcode;
    private String errmsg;
    private T data;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    @Override
    public boolean isShowErrorMsg() {
        return false;
    }

    @Override
    public String getErrorMsg() {
        return null;
    }

    @Override
    public boolean isSuccess() {
        return success;
    }
}
